package com.example.demo.controller;

import com.example.demo.entiy.MyProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloSpringBoot {

    @GetMapping("/hello")
    public static String hello() {
        return "HelloSpringBoot";
    }

    @Autowired
    private MyProperties myProperties;
    @GetMapping("/myproperties")
    private   String properties(){
        return String.valueOf(myProperties);
    }


}
